package routers

// @Author killerzhangsan
// @APIVersion 0.0.1
// @Title  timemaker API
// @Description timemaker api has every tool to get any job done, so codename for the new mobile APIs.
// @Contact pingxiallr@gmail.com
// @TermsOfServiceUrl http://www.fanbuchi.com/
// @License Apache 2.0
// @LicenseUrl http://www.apache.org/licenses/LICENSE-2.0.html

import (
	"git.oschina.net/fanbuchi/timemaker/controllers"
	"github.com/astaxie/beego"
)

func init() {
	ns :=
		beego.NewNamespace("/v1",
			beego.NSNamespace("/user",
				beego.NSInclude(
					&controllers.UserController{},
				),
			),
			beego.NSNamespace("/msg",
				beego.NSInclude(
					&controllers.MsgController{},
				),
			),
			beego.NSNamespace("/version",
				beego.NSInclude(
					&controllers.VersionController{},
				),
			),

			beego.NSNamespace("/oauth2",
				beego.NSInclude(
					&controllers.Oauth2Controller{},
				),
			),

			beego.NSNamespace("/object",
				beego.NSInclude(
					&controllers.ObjectController{},
				),
			),
		)
	beego.AddNamespace(ns)
}
